package com.lottery.game.core.modules.mapper;


import com.lottery.game.core.modules.entity.game.GameRoom;
import com.lottery.game.core.modules.entity.user.RoomAds;

import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * roomDao
 */
public interface RoomDao {

	void createRoom(@Param("id") String id, @Param("name") String name, @Param("no") String no);
	int queryRoomNameCount(@Param("name") String name);

	List<GameRoom> queryRoomList(@Param("start") int start, @Param("size") int size);

	List<GameRoom> queryUsedRoomList(GameRoom room);

	Integer queryRoomCount();

	GameRoom queryRoomByRoomNo(@Param("roomnumber") String roomnumber);

	public List<GameRoom> queryRoomTypeList();

	public GameRoom queryDownTimeByType(String type);

	public int updateCarouseIconAddress(Map<String, String> map);


	public int addRoom(Map<String, String> map);

	public int updateRoom(Map<String, String> map);

	public int delteRoom(@Param("uuId") String uuId);

	public Map<String, Object> queryRoomById(@Param("uuId") String uuId);

	public  List<RoomAds> queryRoomAds(@Param("roomNumber") String roomNumber);

	public GameRoom queryRoomByBetId(@Param("betId") String betId);

	public GameRoom queryRoomType(GameRoom room);


}
